package com.ruoyi.yljf.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 笔记对象 yljf_notice
 * 
 * @author metaee
 * @date 2025-03-07
 */
@Data
@TableName(value = "yljf_notice")
public class Notice {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 笔记id */
    @TableId(type = IdType.AUTO)
    private Long noticeId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 笔记类型(book | course |  paper) */
    @Excel(name = "笔记类型(book | course |  paper)")
    private String noticeType;

    /** 笔记内容 */
    @Excel(name = "笔记内容")
    private String noticeContent;

    /** 笔记属于谁如果是BOOK 就是bookid */
    @Excel(name = "笔记属于谁如果是BOOK 就是bookid")
    private Long contentId;

    /** 笔记内容位置(BOOK 则是章节数id,课程就是课程章节数id) */
    @Excel(name = "笔记内容位置(BOOK 则是章节数id,课程就是课程章节数id)")
    private Long contentPos;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long likes;

    /** 是否公开（0否/1是） */
    @Excel(name = "是否公开", readConverterExp = "0=否/1是")
    private String open;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;

}
